﻿using WcMatch.Models;

namespace WcMatch.Consts
{
    public class GlobalDefines
    {
        public const string StuPhotoDir = "photo\\stu\\";
        public const string ComPhotoPath = "photo\\coms\\";
        public const string ModelFilePath =  "files\\";
        public const string StuInfoFileName = "学生信息.xlsx";
        public const string Temp = "temp\\";

        public static string[] PhotoExtension = { ".jpg", ".png" };
        public static Dictionary<string , string> ImgTypeDict = new Dictionary<string, string> {
                {".jpg","image/jpeg"},
                {".jpeg","image/jpeg"},
                {".jpe","image/jpeg"},
                {".png","image/png"},
                {".gif","image/gif"},
                {".ico","image/x-ico"},
                {".tif","image/tiff"},
                {".tiff","image/tiff"},
                {".fax","image/fax"},
                {".wbmp","image/nd.wap.wbmp"},
                {".rp","imagend.rn-realpix"}
            };

        public static Dictionary<string, string> ExcelTypeDict = new Dictionary<string, string>
        {
            {".xlsx" ,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" },
            {".xls" , "application/vnd.ms-excel" },
            {".csv" , "text/csv" }

            //application/vnd.ms-excel
            //text / csv
            //ContentType 
        };

        public static OriganizationType[] OriganizationTypes = new OriganizationType[]
        {
            new OriganizationType(1, "政府单位及行政机关"),
            new OriganizationType(2, "事业单位"),
            new OriganizationType(3, "国有企业"),
            new OriganizationType(4, "私营企业"),
            new OriganizationType(5, "外资企业"),
            new OriganizationType(6, "合资企业")
        };

        public static ZpShenHeStatus[] ZpZtArr = new ZpShenHeStatus[]
        {
            new ZpShenHeStatus( 0, "未提交"),
            new ZpShenHeStatus( 1, "审核通过"),
            new ZpShenHeStatus( 2, "材料被驳回"),
            new ZpShenHeStatus( 3, "已提交，等待审核"),
        };

        public static Dictionary<int, string> ZpShenHeStatusDic = new Dictionary<int, string>()
        {
            { 0, "未提交"},
            { 1, "审核通过"},
            { 2, "材料被驳回"},
            { 3, "已提交，等待审核"}
        };

        public const string GenderMale = "男";
        public const string GenderFemale = "女";

    }
}
